package org.openwork.portlet.skillmanagement.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import org.openwork.portlet.skillmanagement.model.SkillUser;


/**
 * <a href="SkillUserPersistence.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * @author    Samuel Garcia Martinez
 * @see       SkillUserPersistenceImpl
 * @see       SkillUserUtil
 * @generated
 */
public interface SkillUserPersistence extends BasePersistence<SkillUser> {
    public void cacheResult(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser);

    public void cacheResult(
        java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> skillUsers);

    public org.openwork.portlet.skillmanagement.model.SkillUser create(
        SkillUserPK skillUserPK);

    public org.openwork.portlet.skillmanagement.model.SkillUser remove(
        SkillUserPK skillUserPK)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser updateImpl(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser,
        boolean merge)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.SkillUser findByPrimaryKey(
        SkillUserPK skillUserPK)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser fetchByPrimaryKey(
        SkillUserPK skillUserPK)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findByUserId(
        long userId) throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findByUserId(
        long userId, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findByUserId(
        long userId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.SkillUser findByUserId_First(
        long userId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser findByUserId_Last(
        long userId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser[] findByUserId_PrevAndNext(
        SkillUserPK skillUserPK, long userId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findBySkillId(
        long skillId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findBySkillId(
        long skillId, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findBySkillId(
        long skillId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.SkillUser findBySkillId_First(
        long skillId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser findBySkillId_Last(
        long skillId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public org.openwork.portlet.skillmanagement.model.SkillUser[] findBySkillId_PrevAndNext(
        SkillUserPK skillUserPK, long skillId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchUserException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeByUserId(long userId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeBySkillId(long skillId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countByUserId(long userId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countBySkillId(long skillId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countAll()
        throws com.liferay.portal.kernel.exception.SystemException;
}
